import request from '@/utils/request'

const headers = { 'Content-Type': 'application/x-www-form-urlencoded' }

export const projectListService = () => {
    return request.get('/api/project/list')
}

export const projectListParamService = (params) => {
    return request.get('/api/project/list', {params:params})
}

export function deleteProjectService(data){
    return request.post('/api/project/delete', data,  {headers:headers})
}

export function addProjectService(data){
    return request.post('/api/project/add', data)
}

export function updateProjectService(data){
    return request.post('/api/project/update', data)
}
